/**
 * 
 */
package jmine.tec.datadigester.positional.writer.factory;

import jmine.tec.datadigester.positional.meta.PositionalStringFieldMetadata;
import jmine.tec.datadigester.positional.writer.PositionalFieldWriter;
import jmine.tec.datadigester.positional.writer.StringPositionalFieldWriter;

/**
 * {@link PositionalWriterFactory} para writers de campos String
 * 
 * @author israel.crisanto
 */
public class StringPositionalWriterFactory implements PositionalWriterFactory<PositionalStringFieldMetadata> {

    /**
     * {@inheritDoc}
     */
    public PositionalFieldWriter create(PositionalStringFieldMetadata metadata) {
        return new StringPositionalFieldWriter(metadata);
    }

    /**
     * {@inheritDoc}
     */
    public Class<PositionalStringFieldMetadata> getFieldMetadataType() {
        return PositionalStringFieldMetadata.class;
    }

}
